/**
 @文件名： rootBase
 @来源：YongPing.Wang|2023/11/21 10:53
 @描述：根路由
 **/
import { type RouteRecordRaw } from 'vue-router'

// 路由
export const rootBase: RouteRecordRaw[] = [
  // 重定向
  { path: '/root', redirect: { name: 'projectManagement' } },
  // 项目管理
  {
    path: '/root/project-management',
    name: 'projectManagement',
    component: async () => await import('@/viewPage/projectManagement/projectManagement.vue'),
    meta: { title: 'projectManagement' },
  },
  // 通道管理
  {
    path: '/root/route-management',
    name: 'routeManagement',
    component: async () => await import('@/viewPage/routeManagement/routeManagement.vue'),
    meta: { title: 'routeManagement' },
  },
  // 组态管理
  {
    path: '/root/zt-management',
    name: 'ztManagement',
    component: async () => await import('@/viewPage/ztManagement/ztManagement.vue'),
    meta: { title: 'ztManagement' },
  },
  // 实时监控
  {
    path: '/root/realtime-monitor',
    name: 'realtimeMonitor',
    component: async () => await import('@/viewPage/realtimeMonitor/realtimeMonitor.vue'),
    meta: { title: 'realtimeMonitor' },
  },

  /* 404 */
  { path: '/root/404', name: 'RootFourZeroFour', component: async () => await import('@/viewBase/otherModel/fourZeroFour.vue'), meta: { title: '404' } },
]
